package ru.compscicenter.java.calc.expression;

import ru.compscicenter.java.calc.operations.Operations;

public class BinaryMul<E> extends Binary<E> {

	public BinaryMul(Expression<E> left, Expression<E> right) {
		super(left, right);
	}

	@Override
	public E evaluate(E x, Operations<E> operations) {
		return operations.mul(left.evaluate(x, operations), right.evaluate(x, operations));
	}

}
